<?php
class Theme extends AppModel {
	var $name = "Theme";
	var $useTable = false;
	
	var $actsAs = 
		array('Upload' => array(
				'field' => 'themeFile',
				'dir' => TMP,
				'allowedMime' => array('application/zip','application/x-zip','application/x-zip-compressed','application/octet-stream','application/x-compress','application/x-compressed','multipart/x-zip','application/binary'),
				'allowedExt' => array('zip'),
				'uncompressAfterUpload' => true,
				'uncompressDir' => '{WWW_ROOT}themed{DS}',
				'zipValidation' => 'validateTheme'
		)
	);
	
	var $fieldProperties = array(
		'themeFile' => array(
			'type' => 'file',
			'label'=>'Theme File',
			'group' => 'admin'
		)
	
	);
	
	function validateTheme()
	{
		$files = array();
		return true;
	}
	
}
?>